package cn.zct.test.infrastructure;

import cn.zct.infrastructure.persistent.dao.IAwardDao;
import cn.zct.infrastructure.persistent.po.Award;
import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;
import java.util.List;

@Slf4j
@SpringBootTest
@RunWith(SpringRunner.class)
public class AwardDaoTest {
            @Resource
            private IAwardDao awardDao;

            @Test
            public void test_queryAwardList(){
                List<Award>awards = awardDao.queryAwardList();
                log.info("测试结果：{}",JSON.toJSONString(awards));
            }
}
